package com.example.yunifang.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class SerachHistorySqlliteOpenHelper extends SQLiteOpenHelper {

	public static final String SQLITE = "YN.db";
	public static final String SQLITE_TABLE = "YN_serach_history";
	public static final int SQLITE_Vision = 1;

	public SerachHistorySqlliteOpenHelper(Context context) {
		super(context, SQLITE, null, SQLITE_Vision);
		// TODO Auto-generated constructor stub
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		// TODO Auto-generated method stub
		String sql = "CREATE TABLE " + SQLITE_TABLE + "("
				+ "_id integer primary key autoincrement,"
				+ "serach_str varchar(0)" + ")";
		db.execSQL(sql);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub

	}

}
